<?php

namespace common\models;

use Yii;
use yii\base\Model;

class CaptchaForm extends Model
{
    public $verifyCode;


    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            ['verifyCode', 'required','message'=>'验证码不能为空'],
            ['verifyCode', 'captcha','captchaAction'=>'login/captcha','message'=>'图形验证码错误'],
        ];
    }
}
